<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>更新客户</title>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateUserAction.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> <input name="id" value="<s:property value='#request.user.id' />" type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<table>
					<tr>
						<td>用户名</td>
						<td><input disabled="disabled" name="username" type="text" size="30" value="<s:property value='#request.user.username'/>" /></td>
					</tr>
					<tr>
						<td>状态：</td>
						<td><s:if test="#request.user.locked==0">
								<select   name="locked" style="width: 120px">
									<option value="0" selected="selected">启用</option>
									<option value="1">禁用</option>
								</select>
							</s:if> <s:elseif test="#request.user.locked==1">
								<select   name="locked" style="width: 120px">
									<option value="0">启用</option>
									<option value="1" selected="selected">禁用</option>
								</select>
							</s:elseif></td>
					</tr>
					
					<tr>
						<td>用户类型：</td>
						<td><s:if test='#request.user.userType=="A"'>
								<select   name="userType" style="width: 120px">
									<option value="A" selected="selected">散户</option>
									<option value="B">淘宝</option>
									<option value="C">企业</option>
								</select>
							</s:if> <s:elseif test='#request.user.userType=="B"'>
								<select   name="userType" style="width: 120px">
									<option value="A" >散户</option>
									<option value="B" selected="selected">淘宝</option>
									<option value="C">企业</option>
								</select>
							</s:elseif> <s:elseif test='#request.user.userType=="C"'>
								<select   name="userType" style="width: 120px">
									<option value="A" >散户</option>
									<option value="B" >淘宝</option>
									<option value="C" selected="selected">企业</option>
								</select>
							</s:elseif><s:elseif test="#request.user.userType==null">
								<select   name="userType" style="width: 120px">
									<option value="A" >散户</option>
									<option value="B" >淘宝</option>
									<option value="C" >企业</option>
								</select>
							</s:elseif>							
							</td>
					</tr>
				
					<tr>
						<td>预支限额：</td>
						<td><input name="advanceLimit" type="text" class="number" size="30" value="<s:property value='#request.user.advanceLimit'/>" /></td>
					</tr>	
				
					

				</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>
